package com.diandian.backend.meituan.shangou.exchange.req;

import java.io.Serializable;

public class SkuStockUpdateOneReq implements Serializable {

    private String offlineStoreCode; // 线下门店编码
    private String onlineStoreCode; // 线上门店编码：有线上编码优先使用线上编码，否则使用线下门店编码兑换线上编码
    private String productCode; // 商品编码
    private String skuCode; // sku编码
    private Integer stockCount; // 库存数据

    public boolean check(){
        if((offlineStoreCode == null || "".equals(offlineStoreCode)) && (onlineStoreCode == null || "".equals(onlineStoreCode))){
            return false;
        }
        if(productCode == null || "".equals(productCode)){
            return false;
        }
        if(stockCount == null){
            return false;
        }
        return true;
    }

    public String getOfflineStoreCode() {
        return offlineStoreCode;
    }

    public void setOfflineStoreCode(String offlineStoreCode) {
        this.offlineStoreCode = offlineStoreCode;
    }

    public String getOnlineStoreCode() {
        return onlineStoreCode;
    }

    public void setOnlineStoreCode(String onlineStoreCode) {
        this.onlineStoreCode = onlineStoreCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getSkuCode() {
        return skuCode;
    }

    public void setSkuCode(String skuCode) {
        this.skuCode = skuCode;
    }

    public Integer getStockCount() {
        return stockCount;
    }

    public void setStockCount(Integer stockCount) {
        this.stockCount = stockCount;
    }
}
